package pers.vic.blog.module.api.mapper;

import org.apache.ibatis.annotations.Param;
import pers.vic.blog.module.api.model.GlobalConfig;
import pers.vic.boot.base.mapper.BaseMapper;

/**
 * @author Vic.xu
 * @description:全局配置 Mapper
 * @date: 2020-06-10 14:37
 */
public interface GlobalConfigMapper extends BaseMapper<GlobalConfig> {

    /**
     * 根据code查找配置
     * @param name code
     * @return 配置
     */
    GlobalConfig getByCode(@Param("code") String name);
}
